<el-dialog title="添加员工活动信息" v-model="addFormDialog">
<!-- <el-form :model="form"> -->
<el-form ref="addForm" :rules="addRules" :model="addForm" :label-width="dialogLabelWidth">
<el-tabs  type="card" >
    <el-tab-pane label="基本信息" name="first">
    <el-row>
          <el-col :span="12" editable = "false">
        <el-form-item prop="time" label="活动日期及时间"  >
            <el-date-picker  v-model="addForm.time" placeholder="请选择日期及时间" type="datetime" @change="timeAddChange"    >
            </el-date-picker>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
        <el-col :span="12">
          <el-form-item label="活动名称" prop ="name">
            <el-input v-model="addForm.name" auto-complet="off"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
        <el-form-item label="活动策划人">
          <el-input v-model="addForm.planner" auto-complet="off"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
    
      <el-col :span="12">
        <el-form-item label="活动地点">
          <el-input v-model="addForm.place" auto-complet="off"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="后期配合人员">
          <el-input v-model="addForm.partner" auto-complet="off"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-form-item label="活动参与人员" prop="participant">
      <el-input
      v-model="addForm.participant"
      type="textarea"
      :autosize="{ minRows: 2, maxRows: 4}"
      placeholder="请输入内容">
    </el-input>
    </el-form-item>
      <el-form-item label="活动内容" prop="content">
      <el-input
      v-model="addForm.content"
      type="textarea"
      :autosize="{ minRows: 2, maxRows: 4}"
      placeholder="请输入内容">
    </el-input>
    </el-form-item>
     <el-row>
      <el-col :span="12">
          <el-form-item label="活动反馈报告">
        <!-- <el-input v-model="addForm.file_realname" :src="addUpload" auto-complet="off" :disabled="true" ></el-input> -->
        <el-upload
         action="{:U('Upload/index_training')}" 
         accept="application/msword,application/vnd.ms-powerpoint,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
         :on-success="addFormUploadSuccess" 
         :on-error="addFormUploadError" 
         :data="pathInfo"
         :headers="xuploadheader"
         :multiple="true"
         :show-upload-list="true"
         :on-remove="addFormFileRemove"
         >
        <el-button size="small" type="primary">点击上传</el-button>
      </el-upload>
      </el-form-item>
      </el-col>
    </el-row>
    <el-form-item >
        <span style="color:red;">注：只能上传类型为doc,ppt,pdf,docx,excel,xls,xlsx类型的文件</span>
    </el-form-item>

    </el-tab-pane>
  </el-tabs>
 
   
    
  </el-form>
  <div slot="footer" class="dialog-footer">
   <include file="Common:_add" />
  </div>
</el-dialog>
